package fun.stgoder.bmwf.core.exception;

import fun.stgoder.bmwf.core.constant.Constants;
import lombok.Data;

@Data
public class BaseException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    private int code;

    private String message;

    public BaseException(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public BaseException(String message) {
        this(Constants.FAIL, message);
    }
}
